package hcn.protocol.ods.casehistory;

import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

/**
 * @program: 20190427StandardEdition
 *
 * @description: 病历类型
 *
 * @author: zhusm@bsoft.com.cn
 *
 * @create: 2019-06-17 11:18
 **/
@NoArgsConstructor
@AllArgsConstructor
public enum BLType {
    HOSPITALIZATION("1","住院病历");

    private String code;
    private String description;

    public static final String getDescription(String code){
        for (BLType type : BLType.values()){
            if (type.getCode().equalsIgnoreCase(code.trim())){
                return type.description;
            }
        }
        return null;
    }

    public String getCode() {
        return code;
    }
}
